package com.lebang.feign.bus;

import com.lebang.feign.bus.fallback.MemberWithdrawalRecordFallback;
import com.lebang.model.RequestUserInfo;
import com.lebangweb.response.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDateTime;

/**
 * @author ljx
 */
@FeignClient(name = "wangzhuan-earns", contextId = "wangzhuan-bus-withdrawal", fallback = MemberWithdrawalRecordFallback.class)
public interface MemberWithdrawalRecordFeign {
     @PostMapping("/manage/memberwithdrawalrecord/list")
     JsonData list(@RequestParam("page") Integer page,
                   @RequestParam("limit") Integer limit,
                   @RequestParam("status")String status,
                   @RequestParam("star")LocalDateTime star,
                   @RequestParam("end")LocalDateTime end);

     @PostMapping("/manage/memberwithdrawalrecord/updatestatus")
     JsonData updateStatus(@RequestParam String memberId, @RequestParam String imei, @RequestParam String phone, @RequestParam String wxOpenid,@RequestParam Integer configId);
}
